<template>
	<view>
		<page-head :transparent='false'>
			<slot slot="title">{{title.length>10?title.substr(0,10)+'...':title}}</slot>
			<slot slot="right">{{''}}</slot>
		</page-head>
		<!-- <w-loading text="加载中.." mask="1" click="0" ref="loading"></w-loading> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mask: 1,
				click: 0,
				title: ''
			}
		},
		onLoad() {
			// setTimeout(this.openLoading(), 2000)
			this.openLoading();
		},
		methods: {
			openLoading() {
				/* console.log(1212)
				this.$refs.loading.open(); */
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
			}
		}
	}
</script>

<style>

</style>
